<%@page import="dgcptic.interventions.model.DemandeFactory"%>
<%@page import="dgcptic.interventions.model.Demande"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Page administrateur</title>
</head>
<body>
<h3> Liste des demandes pour validation </h3>

<table name="tableau" border="1">
<%
DemandeFactory dFactory = new DemandeFactory();
List<Demande> listDemande = dFactory.getListDemandes();
for(Demande d: listDemande){
%>
<tr><td>
<input type="hidden" name="form" value="val"/>
<%=d.getTitre() %></td>
<td><%=d.getDate() %></td>
<td><%=d.getDescription() %></td>
<td>
<form action="adminServlet" method="get">
<input type="hidden" name="idDemande" value="<%=d.getId()%>">
<input type="submit" name="action" value="Accept">
<input type="submit" name="action" value="Refused">
</form>
</td>
</tr>
<%} %>
</table>

</body>
</html>